﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace SaaS.Core.Helper
{
    public class CheckHelper
    {
        public static bool CheckUserName(string username, out string message)
        {
            message = string.Empty;
            if (!Regex.IsMatch(username, "[A-Za-z0-9]{5,32}")) message = "用户名由字母、数字组成，长度不能少于5个字符";
            return true;
        }
    }
}
